<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../css/docs.css" type="text/css" rel="stylesheet" />
<link href="../css/prettify.css" type="text/css" rel="stylesheet" />
<script src="../js/prettify.js" type="text/javascript"></script>
</head>
<body onLoad="prettyPrint()">
<div class="g-unit" id="doc-content">
<div id="api-info-block">
<div class="api-level">H3C CAS云管理平台</div>
</div>
<div id="jd-header">
<h1>查询告警详细信息</h1>
</div>
<div id="jd-content">
<div class="jd-descr">
<p>查询指定告警的详细信息。</p>
<h2><a name="uri"></a>接口 URI</h2>
<p>/cas/casrs/warnManage/warnInfo?warnId={warnId}</p>
<h2><a name="access"></a>访问方法</h2>
<dl>
  <dt><b>HTTP 方法</b></dt>
  <dd>GET</dd>
  <dt><b>参数</b></dt>
  <table id="pubmethods" class="jd-sumtable">
    <tbody>
      <tr>
        <th colspan="2">查询参数（Query Parameter）</th>
      </tr>
      <tr class="alt-color">
        <td class="jd-typecol">warnId</td>
        <td class="jd-linkcol" width="100%"><span class="sympad">告警id 。</span>
            <div class="jd-descrdiv">长整数（Long）类型。必须，无缺省值。</div></td>
      </tr>
    </table>
  <dd>&nbsp;</dd>
</dl>
<h2><a name="result"></a>返回结果</h2>
<dl>
  <dt><b>状态码</b></dt>
  <dd>
  <ul>
    <li>200(OK)：成功。</li>
  </ul>
  </dd>
  <dt><b>消息头</b></dt>
  <div class="source"><pre class="prettyprint lang-xml">HTTP/1.1 200 OK<br>Server: Apache-Coyote/1.1<br>Content-Type: application/xml<br>Content-Length: 704<br>Date: Thu, 21 Nov 2013 06:48:36 GMT</pre></div>
  <dt><b>消息体</b></dt>
  <div class="source"><pre class="prettyprint lang-xml">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;warnInfo&gt;<br>  &lt;id&gt;4&lt;/id&gt;<br>  &lt;state&gt;2&lt;/state&gt;<br>  &lt;eventLevel&gt;2&lt;/eventLevel&gt;<br>  &lt;eventType&gt;1&lt;/eventType&gt;<br>  &lt;eventName&gt;主机状态异常告警&lt;/eventName&gt;<br>  &lt;eventSrc&gt;主机"CAS-191"(192.168.0.191)&lt;/eventSrc&gt;<br>  &lt;eventTime&gt;1384589439000&lt;/eventTime&gt;<br>  &lt;eventDesc&gt;主机"CAS-191"状态出现异常。&lt;/eventDesc&gt;<br>  &lt;reason&gt;主机状态出现异常，可能原因：1、主机电源断开；2、主机关机；3、网络连接不通；4、主机密码被修改。&lt;/reason&gt;<br>  &lt;suggest&gt;1、检查主机电源是否接通良好；2、检查主机是否处于启动状态；3、主机网络连接通常；4、主机密码是否正确&lt;/suggest&gt;<br>  &lt;experience&gt;&lt;/experience&gt;
  &lt;uuid&gt;94dc65d7-2158-4be0-8ccf-b77874a18ca6&lt;/uuid&gt;<br>&lt;/warnInfo&gt;</pre>
  </div>
</dl>
<dt><a name="detail"></a><b>元素含义</b></dt>
<table class="jd-sumtable" id="pubmethods">
  <tbody>
    <tr>
      <th colspan="2"><span class="prettyprint lang-xml">warnInfo</span>各子元素</th>
    <tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">id</span></td>
      <td class="jd-linkcol" width="100%"><span class="sympad">告警 ID。</span>
          <div class="jd-descrdiv">长整数（long）类型。</div></td>
    </tr>
    <tr class="alt-color">
      <td class="jd-typecol"><span class="prettyprint lang-xml">state</span></td>
      <td class="jd-linkcol"><span class="sympad">告警状态。</span>
          <div class="jd-descrdiv">整数（int）类型。枚举值：1 确认 2 未确认</div></td>
    </tr>
    <tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">eventLevel</span></td>
      <td class="jd-linkcol"><span class="sympad">告警级别。</span>
          <div class="jd-descrdiv">整数（int）类型。枚举值：1 紧急 2重要 3 次要 4 警告</div></td>
    </tr>
    <tr class="alt-color">
      <td class="jd-typecol"><span class="prettyprint lang-xml">eventType</span></td>
      <td class="jd-linkcol"><span class="sympad">告警类型。</span>
          <div class="jd-descrdiv">整数（int）类型。枚举值：20 主机，30 虚拟机，40 集群， 51 虚拟机管理软件</div></td>
    </tr>
    <tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">eventName</span></td>
      <td class="jd-linkcol"><span class="sympad">告警名称。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
    <tr class="alt-color">
      <td class="jd-typecol"><span class="prettyprint lang-xml">eventSrc</span></td>
      <td class="jd-linkcol"><span class="sympad">告警来源。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
    <tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">eventTime</span></td>
      <td class="jd-linkcol"><span class="sympad">告警时间。</span>
          <div class="jd-descrdiv">长整数（long）类型。</div></td>
    </tr>
    <tr class="alt-color">
      <td class="jd-typecol"><span class="prettyprint lang-xml">eventDesc</span></td>
      <td class="jd-linkcol"><span class="sympad">告警描述。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
    <tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">reason</span></td>
      <td class="jd-linkcol"><span class="sympad">告警原因。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
    <tr class="alt-color">
      <td class="jd-typecol"><span class="prettyprint lang-xml">suggest</span></td>
      <td class="jd-linkcol"><span class="sympad">修复建议。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
     <tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">experience</span></td>
      <td class="jd-linkcol"><span class="sympad">维护经验。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
	<tr class="alt-color">
      <td class="jd-typecol"><span class="prettyprint lang-xml">uuid</span></td>
      <td class="jd-linkcol"><span class="sympad">虚拟机的UUID。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
</table>
<p>&nbsp;</p>
<h2><a name="example"></a>应用举例</h2>
    <p>查询用户ID为501所有参数配置。</p>
    <dl>
      <dt><b>请求</b></dt>
      <div class="source">
        <pre class="prettyprint lang-xml">GET http://localhost:8080/cas/casrs/warnManage/warnInfo?warnId=501
accept: application/xml
...
        </pre>
      </div>
      <dt><b>回应</b></dt>
      <div class="source"><pre class="prettyprint lang-xml">
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml
...<br>&lt;warnInfo&gt;<br>  &lt;id&gt;501&lt;/id&gt;<br>  &lt;state&gt;2&lt;/state&gt;<br>  &lt;eventLevel&gt;2&lt;/eventLevel&gt;<br>  &lt;eventType&gt;1&lt;/eventType&gt;<br>  &lt;eventName&gt;主机状态异常告警&lt;/eventName&gt;<br>  &lt;eventSrc&gt;主机"CAS-191"(192.168.0.191)&lt;/eventSrc&gt;<br>  &lt;eventTime&gt;1384589439000&lt;/eventTime&gt;<br>  &lt;eventDesc&gt;主机"CAS-191"状态出现异常。&lt;/eventDesc&gt;<br>  &lt;reason&gt;主机状态出现异常，可能原因：1、主机电源断开；2、主机关机；3、网络连接不通；4、主机密码被修改。&lt;/reason&gt;<br>  &lt;suggest&gt;1、检查主机电源是否接通良好；2、检查主机是否处于启动状态；3、主机网络连接通常；4、主机密码是否正确&lt;/suggest&gt;<br>  &lt;experience&gt;&lt;/experience&gt;
<br>&lt;/warnInfo&gt;</pre>
      </div>
    </dl>
</div>
</div>
</div>
</body>
</html>